//
//  GYVisitor.h
//  Visitor
//
//  Created by x on 2017/9/13.
//  Copyright © 2017年 HLB. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^successCallBack)(NSMutableArray *array);

@interface GYVisitor : NSObject

/** 来访事由 */
@property (nonatomic, strong) NSString *content;

/** 身份证照片 */
@property (nonatomic, strong) NSString *idImage;

/** 人脸照片 */
@property (nonatomic, strong) NSString *faceimagebase;

/** 来访人姓名 */
@property (nonatomic, strong) NSString *name;

/** 来访人电话 */
@property (nonatomic, strong) NSString *phone;

/** 来访人时间 */
@property (nonatomic, strong) NSString *visitingTime;

/** 这条访客记录的状态 */
@property (nonatomic, assign)int result;

/** 这条访客记录的唯一ID */
@property (nonatomic, strong) NSString *visitorId;

/** 被拒绝访问的原因 */
@property (nonatomic, strong) NSString *cause;

/** 访客记录状态字符串 */
@property (nonatomic, strong) NSString *state;

/** 访客记录状态的背景颜色 */
@property (nonatomic, strong) UIColor *backgroundColor;

+ (NSMutableArray *)visitors:(NSArray *)array;


/**
 加载访客数据

 @param visitorCallBack <#visitorCallBack description#>
 */
+ (void)loadVisitorData:(successCallBack)visitorCallBack;

@end







